package com.eboss2.sbs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.eboss2.sbs.R;
import com.eboss2.sbs.activity.base.BaseActivity;
import com.mytools.tool.activityManager.MyActivityManager;

public class ActivityLoginPwdSetting extends BaseActivity implements View.OnClickListener {

	private final String TAG = "ActivityLoginPwdSetting";
	private RelativeLayout ll_edit_login_pwd;
	private RelativeLayout ll_edit_pay_pwd;
	private RelativeLayout ll_forgot_pwd;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		setContentView(R.layout.activity_login_setting);
		MyActivityManager.getInstance().addActivity(this);
		showView(R.id.titleback_btn_back, true);
		setTvText(R.id.tv_title, "登录密码修改");
		showView(R.id.next_sure, false);
		findViewById(R.id.titleback_btn_back).setOnClickListener(this);
		initView();

	}


	private void initView() {
		RelativeLayout relativeLayout = relativeLayout(R.id.lv_heard);
		relativeLayout.setBackgroundColor(getResources().getColor(R.color.statusBar));
		ll_edit_login_pwd = relativeLayout(R.id.ll_edit_login_pwd);
		ll_edit_login_pwd.setOnClickListener(this);
		ll_forgot_pwd = relativeLayout(R.id.ll_forgot_pwd);
		ll_forgot_pwd.setOnClickListener(this);

	}




	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}


	@Override
	public void onClick(View view) {
		switch (view.getId()){
			case R.id.titleback_btn_back:
				finish();
				break;
			case R.id.ll_edit_login_pwd:
				startActivity(new Intent(mContext, ActivityEditLoginPwd.class));
				break;
			case R.id.ll_forgot_pwd:
				startActivity(new Intent(mContext, ActivityForgotLoginPwd2.class));
				break;
		}
	}
}
